package ee.mtiidla.data;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;

/**
 * Created by Marko on 12.10.2014.
 */
@XmlAccessorType(XmlAccessType.FIELD)
public class Meet {

	@XmlAttribute(name = "city")
	private String city;

	@XmlAttribute(name = "name")
	private String name;

	@XmlAttribute(name = "course")
	private String course;

	@XmlAttribute(name = "nation")
	private String nation;

	@XmlAttribute(name = "organizer")
	private String organizer;

	@XmlElement(name = "AGEDATE")
	private AgeDate ageDate;

	@XmlElement(name = "POOL")
	private Pool pool;

	@XmlElementWrapper(name="SESSIONS")
	@XmlElement(name="SESSION")
	private List<Session> sessions;

	@XmlElementWrapper(name="CLUBS")
	@XmlElement(name="CLUB")
	private List<Club> clubs;

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCourse() {
		return course;
	}

	public void setCourse(String course) {
		this.course = course;
	}

	public String getNation() {
		return nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}

	public String getOrganizer() {
		return organizer;
	}

	public void setOrganizer(String organizer) {
		this.organizer = organizer;
	}

	public AgeDate getAgeDate() {
		return ageDate;
	}

	public void setAgeDate(AgeDate ageDate) {
		this.ageDate = ageDate;
	}

	public Pool getPool() {
		return pool;
	}

	public void setPool(Pool pool) {
		this.pool = pool;
	}

	public List<Session> getSessions() {
		return sessions;
	}

	public void setSessions(List<Session> sessions) {
		this.sessions = sessions;
	}

	public List<Club> getClubs() {
		return clubs;
	}

	public void setClubs(List<Club> clubs) {
		this.clubs = clubs;
	}
}
